<?php

namespace App\Http\Controllers\api;

use App\Http\Transformers\UserTransformer;
use App\User;
use Illuminate\Http\Request;

class UserController extends ApiController
{

    public function index()
    {
        $user = User::all();

        return $this->response->collection($user, new UserTransformer());

    }


}
